export default {
    methods: {
        //获取导航栏高度\状态栏高度\头部总高度
        headerHeight() {
            //状态栏高度
            const statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
            console.log("状态栏高度", statusBarHeight);
            //胶囊位置
            const custom = uni.getMenuButtonBoundingClientRect();
            console.log("胶囊位置", custom);
            //导航栏高度
            const navHeight = custom.height + (custom.top - statusBarHeight) * 2;
            console.log("导航栏高度", navHeight);
            //总高度
            const topHeight = navHeight + statusBarHeight;
            console.log("总高度", topHeight);
            return { statusBarHeight, navHeight, topHeight };
        }
    }
}